package com.dreamer.view.upload;

import com.dreamer.upload.models.Progress;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartResolver;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


///**
// *
// * 创建人：fantasy <br>
// * 创建时间：2013-12-6 <br>
// * 功能描述： 获取上传文件进度controller<br>
// *
// */
//@Controller
//@RequestMapping("/fileStatus")
//public class ProgressController extends BaseController{
//	private MultipartResolver multipartResolver;
//	@RequestMapping(value = "/upfile/progress" )
//	@ResponseBody
//	public String initCreateInfo(HttpServletRequest request) {
//		Progress status = (Progress) request.getSession().getAttribute("upload_ps");
//		if(status==null){
//			return "{}";
//		}
//		return status.toString();
//	}
//}